package com.apollo.springboot.controller;

import com.apollo.springboot.config.RedisConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LiuWei
 * @date: Create in 10:34 2018/08/07
 */
@RestController
public class DemoController {

    @Value("${test:1111111}")
    public String url;

    @Autowired
    RedisConfig configurationPropertiesSample;

    @GetMapping("index")
    public String index() {
        return url + "============" + configurationPropertiesSample.toString();
    }
}
